{extend name="public/iframe" /}

{block name="top"}
{:load_assets('upload,form,datatable','css')}
{/block}

{block name="content"}
<div class="row">
    <div class="col-md-4  mb-5 mb-md-0">
        <div class="card card-custom-tabs">
            <div class="card-header d-flex flex-column flex-nowrap bg-card-header">
                <h5 class="card-title d-flex flex-column">
                    <span class="fs-6 fw-bolder"><i class="bi bi-person-rolodex me-1 fs-4 text-primary"></i>个人资料</span>
                    <span class="fs-7 text-muted">个人资料的查看与修改</span>
                </h5>
            </div>
            <div class="card-body">
                <div class="tab-content">
                    <div class="tab-pane fade active show" id="tab11" role="tabpanel">
                        <form action="" method="post" id="validate-form">
                            <input type="hidden" name="id" value="{$info.id}">
                            <div class="row mb-sm-3">
                                <label  class="col-xxl-2 col-lg-3 col-sm-5 col-12 col-form-label required">用户名</label>
                                <div class="col-lg-9 col-sm-7 col-12 form-item">
                                    <input type="text" class="form-control form-control-solid" name="username" readonly value="{$info.username}" data-rule="用户名:required">
                                </div>
                            </div>
                            <div class="row mb-sm-3">
                                <label  class="col-xxl-2 col-lg-3 col-sm-5 col-12 col-form-label">登录密码</label>
                                <div class="col-lg-9 col-sm-7 col-12 form-item">
                                    <input type="password" class="form-control" name="password" value="" data-rule="登录密码:password">
                                    <div class="form-text text-muted">填写表示要修改密码，不修改则留空</div>
                                </div>
                            </div>
                            <div class="row mb-sm-3">
                                <label  class="col-xxl-2 col-lg-3 col-sm-5 col-12 col-form-label">姓名</label>
                                <div class="col-lg-9 col-sm-7 col-12 form-item">
                                    <input type="text" class="form-control" name="name" value="{$info.name}" data-rule="姓名:nickname">
                                </div>
                            </div>
                            <div class="row mb-sm-3">
                                <label  class="col-xxl-2 col-lg-3 col-sm-5 col-12 col-form-label">头像</label>
                                <div class="col-lg-9 col-sm-7 col-12 form-item">
                                    {:build_upload_template('avatar',$info.avatar)}
                                </div>
                            </div>
                            <div class="row mb-sm-3">
                                <label  class="col-xxl-2 col-lg-3 col-sm-5 col-12 col-form-label">手机号</label>
                                <div class="col-lg-9 col-sm-7 col-12 form-item">
                                    <input type="text" class="form-control" name="mobile" value="{$info.mobile}" data-rule="手机号:mobile">
                                </div>
                            </div>
                            <div class="row mb-sm-3">
                                <label  class="col-xxl-2 col-lg-3 col-sm-5 col-12 col-form-label">邮箱</label>
                                <div class="col-lg-9 col-sm-7 col-12 form-item">
                                    <input type="text" class="form-control" name="email" value="{$info.email}" data-rule="邮箱:email;length(~50)">
                                </div>
                            </div>
                            <div class="row mb-5">
                                <label  class="col-xxl-2 col-lg-3 col-sm-5 col-12 col-form-label"></label>
                                <div class="col-lg-9 col-sm-7 col-12">
                                    <button type="submit" class="btn btn-primary btn-sm"><i class="far fa-check-circle"></i>提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        
    </div>
    <div class="col-md-8">
        <div class="card card-custom-tabs">
            <div class="card-header d-flex flex-column flex-nowrap bg-card-header">
                <h5 class="card-title d-flex flex-column">
                    <span class="fs-6 fw-bolder"><i class="bi bi-card-list me-1 fs-4 text-primary"></i>操作日志</span>
                    <span class="fs-7 text-muted">当前登录账号的个人操作的日志记录</span>
                </h5>
            </div>
            <div class="card-body">
                <div class="tab-content">
                    <div class="tab-pane fade active show" id="tab_log" role="tabpanel">
                        <div class="d-none" id="search-form">
                            <form method="post">
                                <div class="row">
                                    <div class="col-12 col-sm-6 col-md-4 col-lg-3">
                                        <div class="row mb-1">
                                            <label class="col-4 col-form-label text-nowrap text-truncate d-flex justify-content-start justify-content-md-center justify-content-lg-end">标题</label>
                                            <div class="col-8">
                                                <input type="text" class="form-control form-control-sm search_field_title" name="a.title" value="">
                                                <input type="hidden" name="a.title-operate" value="like">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-12 col-sm-6 col-md-4 col-lg-3">
                                        <div class="row mb-1">
                                            <label class="col-4 col-form-label text-nowrap text-truncate d-flex justify-content-start justify-content-md-center justify-content-lg-end">链接</label>
                                            <div class="col-8">
                                                <input type="text" class="form-control form-control-sm" name="a.url" value="">
                                                <input type="hidden" name="a.url-operate" value="like">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-12 col-sm-6 col-md-4 col-lg-3">
                                        <div class="row mb-1">
                                            <label class="col-4 col-form-label text-nowrap text-truncate d-flex justify-content-start justify-content-md-center justify-content-lg-end">IP</label>
                                            <div class="col-8">
                                                <input type="text" class="form-control form-control-sm" name="a.ip" value="">
                                                <input type="hidden" name="a.ip-operate" value="like">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-12 col-sm-6 col-md-4 col-lg-3">
                                        <div class="row mb-1">
                                            <div class="col-12">
                                                <button type="button" class="btn btn-primary btn-sm btn-submit"><i class="fas fa-check-circle"></i>提交</button>
                                                <button type="button" class="btn btn-secondary btn-sm search-toggle">收起</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div id="toolbar">
                            <button type="button" class="btn btn-dark btn-sm search-toggle"  data-bs-toggle="tooltip" title="展开或收起搜索栏" data-bs-dismiss="click"><i class="fa fa-search"></i>搜索</button>
                        </div>
                        <table id="datatable" data-operate-edit="false" data-operate-del="">
        
                        </table>
                    </div>
                </div>
            </div>
        </div>
        
    </div>
</div>

{/block}

{block name="bottom"}
{:load_assets('upload,form,datatable','js')}
{:load_module_assets('action_log')}
{/block}